From 054ccca730a664d2f1c44f2bf3c22db6bdbf5d25 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Tue, 5 Feb 2008 10:29:19 +0000 Subject: [PATCH] x86_emulate: Fix SAHF emulation. Signed-off-by: Xiaohui Xin Signed-off-by: Kevin Tian --- xen/arch/x86/x86_emulate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/arch/x86/x86_emulate.c b/xen/arch/x86/x86_emulate.c index 43f9016624..e559e3c91a 100644 --- a/xen/arch/x86/x86_emulate.c +++ b/xen/arch/x86/x86_emulate.c @@ -2226,7 +2226,7 @@ x86_emulate( } case 0x9e: /* sahf */ - *(uint8_t *)_regs.eflags = (((uint8_t *)&_regs.eax)[1] & 0xd7) | 0x02; + *(uint8_t *)&_regs.eflags = (((uint8_t *)&_regs.eax)[1] & 0xd7) | 0x02; break; case 0x9f: /* lahf */ -- 2.30.2